package com.srv.persistence;

import java.util.List;
import java.util.Map;
import com.srv.model.Node;
import com.srv.util.ObjectField;
public interface INodePersistence{ 
	
	List<Node> queryNodeList(long pid, Map<ObjectField, Object> keyValues) throws PersistenceException;
	
	Node getNode(long pid, String nodeID)throws PersistenceException;
	
	Node insertNode(Node node)throws PersistenceException;
	
	boolean updateNode(long pid, String nodeID, Map<ObjectField, Object> keyValues)throws PersistenceException;
	void deleteNode(long pid, String nodeID)throws PersistenceException;
}
